From: Colin Walters Date: Wed, 7 Jan 2009 22:19:46 +0000 (+0000) Subject: Bug 563394 - revert change to run overlay key in idle X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11502 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9bee44fe26b58b41d0e1957a00b10bc602a3c7d3;p=gnome-shell.git Bug 563394 - revert change to run overlay key in idle This was likely a different bug, possibly the OOM after a period of time. It seems reliable for me now without the idle. svn path=/trunk/; revision=140 --- diff --git a/js/ui/main.js b/js/ui/main.js index fb07085fb..b957f0b17 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -124,16 +124,11 @@ function start() { let display = global.screen.get_display(); display.connect('overlay-key', function(display) { - // Queue an idle for this, because we're getting called - // out of a metacity event handler, and doing a lot of - // work from inside there is...iffy. - Mainloop.idle_add(function () { - if (overlay.visible) { - hide_overlay(); - } else { - show_overlay(); - } - }); + if (overlay.visible) { + hide_overlay(); + } else { + show_overlay(); + } }); }